-- AlipayAgent
-- Created by chengb Jan/5/2016
-- 支付宝代理

module("AlipayAgent", package.seeall);

-- 初始化
function init()

end

----------------------
-- 通过支付宝购买商品
-- @param sku 商品库存标识
function buyPurchase(sku)
    local serverId = getCurrentServerId();
    local account  = getGaming3rdAccount();
    local platform = PUBLISH_PLATFORM;


    callJavaFunc("buyPurchase", {sku, account, serverId, platform},
        "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V");
end



